/******************************************************************************
 * Product: Adempiere ERP & CRM Smart Business Solution                       *
 * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved.                *
 * This program is free software; you can redistribute it and/or modify it    *
 * under the terms version 2 of the GNU General Public License as published   *
 * by the Free Software Foundation. This program is distributed in the hope   *
 * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied *
 * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.           *
 * See the GNU General Public License for more details.                       *
 * You should have received a copy of the GNU General Public License along    *
 * with this program; if not, write to the Free Software Foundation, Inc.,    *
 * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.                     *
 * For the text or an alternative of this public license, you may reach us    *
 * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA        *
 * or via info@compiere.org or http://www.compiere.org/license.html           *
 *****************************************************************************/
/** Generated Model - DO NOT CHANGE */
package org.adempiere.model;

import java.sql.ResultSet;
import java.sql.Timestamp;
import java.util.Properties;
import org.compiere.model.I_Persistent;
import org.compiere.model.PO;
import org.compiere.model.POInfo;
import org.jboss.util.Strings;

/** Generated Model for M_BarcodeTrx
 *  @author Shindu 
 *  @version Release 3.4.2s - $Id$ */
public class X_M_BarcodeTrx extends PO implements  I_Persistent 
{
	/**
	 *
	 */
	private static final long serialVersionUID = 1L;

    /** Standard Constructor */
    public X_M_BarcodeTrx (Properties ctx, int M_BarcodeTrx_ID, String trxName)
    {
      super (ctx, M_BarcodeTrx_ID, trxName);
    }

    /** Load Constructor */
    public X_M_BarcodeTrx (Properties ctx, ResultSet rs, String trxName)
    {
      super (ctx, rs, trxName);
    }

    /** AccessLevel
      * @return 1 - Org 
      */
    protected int get_AccessLevel()
    {
      return 1;
    }

    /** Load Meta Data */
    static int TableID=120000;
        protected POInfo initPO (Properties ctx)
    {
      POInfo poi = POInfo.getPOInfo (ctx, TableID, get_TrxName());
      return poi;
    }

    public String toString()
    {
      StringBuffer sb = new StringBuffer ("X_M_Barcode_Trx[")
        .append(get_ID()).append("]");
      return sb.toString();
    }


    static String COLUMNNAME_M_BarcodeTrx_ID = "M_BarcodeTrx_ID";
	public void setM_BarcodeTrx_ID (int M_BarcodeTrxID)
	{
		if (M_BarcodeTrxID < 1)
			 throw new IllegalArgumentException (COLUMNNAME_M_BarcodeTrx_ID + " is mandatory.");
		set_ValueNoCheck (COLUMNNAME_M_BarcodeTrx_ID, Integer.valueOf(M_BarcodeTrxID));
	}
	public int getM_BarcodeTrx_ID () 
	{
		Integer ii = (Integer)get_Value(COLUMNNAME_M_BarcodeTrx_ID);
		if (ii == null)
			 return 0;
		return ii.intValue();
	}
		
	static String COLUMNNAME_ScanDate = "ScanDate";		
	public void setScanDate (Timestamp ScanDate)
	{
		set_ValueNoCheck (COLUMNNAME_ScanDate, ScanDate);
	}

	public Timestamp getScanDate () 
	{
		return (Timestamp) get_Value(COLUMNNAME_ScanDate);		
	}
	
	static String COLUMNNAME_M_InOut_ID = "M_InOut_ID";
	public void setM_InOut_ID (int M_InOut_ID)
	{
		set_ValueNoCheck (COLUMNNAME_M_InOut_ID, Integer.valueOf(M_InOut_ID));
	}
	public int getM_InOut_ID () 
	{
		Integer ii = (Integer)get_Value(COLUMNNAME_M_InOut_ID);
		if (ii == null)
			 return 0;
		return ii.intValue();
	}
	
	static String COLUMNNAME_M_Locator_ID = "M_Locator_ID";
	public void setM_Locator_ID (int M_Locator_ID)
	{
		if (M_Locator_ID < 1)
			 throw new IllegalArgumentException (COLUMNNAME_M_Locator_ID + " is mandatory.");
		set_ValueNoCheck (COLUMNNAME_M_Locator_ID, Integer.valueOf(M_Locator_ID));
	}
	public int getM_Locator_ID () 
	{
		Integer ii = (Integer)get_Value(COLUMNNAME_M_Locator_ID);
		if (ii == null)
			 return 0;
		return ii.intValue();
	}
	
	static String COLUMNNAME_IsEceran = "IsEceran";
	public void setIsEceran (boolean value)
	{		
		set_ValueNoCheck (COLUMNNAME_IsEceran, value);
	}
	public boolean getIsEceran () 
	{
		return (Boolean) get_Value(COLUMNNAME_IsEceran);		
	}
	//
	static String COLUMNNAME_IsGenerated = "IsGeneratedInOut";
	public void setIsGeneratedToInOut (boolean value)
	{		
		set_ValueNoCheck (COLUMNNAME_IsGenerated, value);
	}
	public boolean getIsGeneratedToInOut () 
	{
		return (Boolean) get_Value(COLUMNNAME_IsGenerated);		
	}
	//
	static String COLUMNNAME_IsSOTrx = "IsSOTrx";
	public void setIsSOTrx (boolean value)
	{		
		set_ValueNoCheck (COLUMNNAME_IsSOTrx, value);
	}
	public boolean getIsSOTrx () 
	{
		return (Boolean) get_Value(COLUMNNAME_IsSOTrx);		
	}
	//
	static String COLUMNNAME_C_BPartner_ID = "C_BPartner_ID";
	public void setC_BPartner_ID (int value)
	{		
		set_ValueNoCheck (COLUMNNAME_C_BPartner_ID, Integer.valueOf(value));
	}
	public int getC_BPartner_ID () 
	{
		Integer ii = (Integer)get_Value(COLUMNNAME_C_BPartner_ID);
		if (ii == null)
			 return 0;
		return ii.intValue();
	}	
	//
	static String COLUMNNAME_C_Order_ID = "C_Order_ID";
	public void setC_Order_ID (int value)
	{		
		set_ValueNoCheck (COLUMNNAME_C_Order_ID, Integer.valueOf(value));
	}
	public int getC_Order_ID () 
	{
		Integer ii = (Integer)get_Value(COLUMNNAME_C_Order_ID);
		if (ii == null)
			 return 0;
		return ii.intValue();
	}
	//
	static String COLUMNNAME_C_DocType_ID = "C_DocType_ID";
	public void setC_DocType_ID (int value)
	{
		if (value < 1)
			 throw new IllegalArgumentException (COLUMNNAME_C_DocType_ID + " is mandatory.");
		set_ValueNoCheck (COLUMNNAME_C_DocType_ID, Integer.valueOf(value));
	}
	public int getC_DocType_ID() 
	{
		Integer ii = (Integer)get_Value(COLUMNNAME_C_DocType_ID);
		if (ii == null)
			 return 0;
		return ii.intValue();
	}
	//
	static String COLUMNNAME_POReference = "POReference";
	public void setPOReference (String value)
	{
		set_ValueNoCheck (COLUMNNAME_POReference, value);
	}
	public String getPOReference() 
	{
		if (get_Value(COLUMNNAME_POReference)==null)
			return Strings.EMPTY;
		return get_Value(COLUMNNAME_POReference).toString();		
	}
	
}